package com.springcloud.play.novel.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "novel.crawler")
public class NovelCrawlerConfig {
    private String baseUrl;
    private String searchUrl;
    private int timeout = 30000;
    private int retryCount = 3;
    private int maxConcurrentRequests = 5;
    private String cronExpression = "0 0 2 * * ?";
}